package com.zzld.modules.autoinn.service;

import java.util.List;

import com.zzld.core.service.IBaseService;
import com.zzld.modules.autoinn.entity.Area;
import com.zzld.modules.common.dto.TreeGrid;


public interface IAreaService extends IBaseService<Area>{

	
	public Integer sercount(String pid);
	
	/**
	 * 根据id查询一条数据
	 * @param id
	 * @return
	 */
	public Area selectbyid(String id);
	
	/**
	 * 新增或修改
	 * @param area
	 * @param i
	 * @return
	 */
	public int uporadd(Area area,int i);
	
	/**
	 * 获取树形网格
	 * @return
	 */
	public List<TreeGrid> treeGrid();
	
	/**
	 * 删除操作
	 * @param id
	 * @return
	 */
	public int deletearea(String id);
}
